package top.yifengxiner.blockchain.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ：baixiao
 * @date ：Created in 2021/5/11 18:34
 * @description：课程
 * @modified By：
 * @version: 0.0.1$
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("course")
public class Course
{
    /*课程ID*/
    @TableId(value = "course_id",type = IdType.AUTO)
    private Long courseId;
    /*学历ID*/
    @TableField("academic_id")
    private Long academicId;
    /*课程名称*/
    @TableField("course_name")
    private String courseName;
    /*课程分数*/
    @TableField("score")
    private int score;

    public Course(Long academicId,String courseName,int score)
    {
        this.academicId = academicId;
        this.courseName = courseName;
        this.score = score;
    }
}
